require("./@babel/runtime/helpers/Arrayincludes.js"), module.exports = {
    formatTime: function(e) {
        return e.getFullYear(), e.getMonth(), e.getDate(), [ e.getHours(), e.getMinutes(), e.getSeconds() ].map(t).join(":");
    },
    randomNum: function(e, t) {
        switch (arguments.length) {
          case 1:
            return parseInt(Math.random() * e + 1, 10);

          case 2:
            return parseInt(Math.random() * (t - e + 1) + e, 10);

          default:
            return 0;
        }
    },
    getSysInfo: function() {
        var e = getApp();
        return e && e.sysInfo ? e.sysInfo : wx.getSystemInfoSync();
    },
    vibrate: function() {
        getApp().globalData.settings.vibrateChecked && wx.vibrateLong();
    },
    isIOS: function() {
        var e = this.getSysInfo(), t = e.platform, n = e.system;
        return "devtools" === t && n.includes("iOS") || "ios" === t;
    },
    navigateBack: function() {
        getCurrentPages().length > 1 ? wx.navigateBack({
            delta: 1
        }) : wx.navigateTo({
            url: "/pages/index/index"
        });
    }
};